<?php
namespace app\admin\controller;
use think\Controller;
use think\Db;
class Api {
    public function getPic(){

        $rs=Db::name('pictures')->select();
        return json($rs);
    }
    public function getComment(){
        $pi_id=input("pi_id");
        $rs=Db::name('comments')->where("pi_id",$pi_id)->select();
        return json($rs);
    }
    public function getClub(){

        $rs=Db::name('clubs')->select();
        return json($rs);
    }

}